using UnityEngine;
using System.Collections;
using System.Collections.Generic;
/// <summary>
/// Exemple delegate (functional)
/// </summary>
public class MyDelegate:MonoBehaviour
{  

	public delegate void MaxDelegate(string allo, int bonjour);
	public MyDelegate m_MyDelegate;

	void Awake () 
	{
		m_MyDelegate.Attack ();
		m_MyDelegate.onDelegateComplete("allo", 69);
		m_MyDelegate.DelegateDone("allo", 69);
		m_MyDelegate.onAttackDone ();
	}
	public void Attack()
	{

		
	}
	public void onDelegateComplete(string _allo, int _bonjour)
	{

	}

	public void onAttackDone ()
	{

	}

	private void DelegateDone(string _allo, int _bonjour) 
	{
		Debug.Log("Delegate done");
		
		//if(onDelegateComplete != null)
		onDelegateComplete("hello!", 69);
	}
	void Update () 
	{
		
	}
	
}